import { createApp } from 'vue'
import App from './App.vue'
//引入element ui 的插件于样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//svg插件需要的配置代码
import 'virtual:svg-icons-register'
//引入模板全局样式
import '@/styles/index.scss'
//配置element-ui国际化
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//引入路由
import router from './router'
//引入仓库
import pinia from './store'
//引入自定义全局组件
import gloalComponent from '@/components'
//引入路由鉴权守卫
import './permisstion'
const app = createApp(App)
app.use(ElementPlus, {
  locale: zhCn, //国际化配置
})
//注册模板路由
app.use(router)
//用仓库
app.use(pinia)
//安装咱们自定义的组件
app.use(gloalComponent)
app.mount('#app')
